home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 23
/
Amiga Format AFCD23 (Feb 1998, Issue 107).iso
/
-seriously_amiga-
/
shareware
/
sound
/
mrmpeg
/
getinfo.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-12-01
|
1KB
|
28 lines
/* GetInfo.rexx */
options results; address MrMPEG
MUIA_List_Active = 0x8042391c; MUIA_List_Entries = 0x80421654
MUIA_Slider_Level = 0x8042ae3a; MUIA_Slider_Max = 0x8042d78a
list ID SLIST ATTRS MUIA_List_Active; temp_active = result
list ID SLIST POS temp_active; parse var result filename','temp_total_time','detail
if filename ~= 'RESULT' then do /* Check if there's any selected song */
getvar current_song
if filename ~= result then setvar current_time '00:00'
list ID SLIST ATTRS MUIA_List_Entries; temp_max = result
setvar active temp_active
setvar max temp_max
getvar current_time; temp_current_time = result
setvar total_time temp_total_time
text ID LCD LABEL filename"\n"strip(detail)
text ID ACTIV LABEL "\033b\033r"temp_active + 1
text ID MAX LABEL "\033b\033r"temp_max
text ID CURNT LABEL "\033b\033r"temp_current_time
text ID TOTAL LABEL "\033b\033r"temp_total_time
slider ID PROG ATTRS,
MUIA_Slider_Max left(temp_total_time, 2) * 60 + right(temp_total_time, 2),
MUIA_Slider_Level left(temp_current_time, 2) * 60 + right(temp_current_time, 2)
end
return